#ifndef ML307_h_
#define ML307_h_

#include "debug.h"
#include "process.h"




void ml307_receiveData(u8* dat, u16 cnt);
void ml307_transmateData(char* dat);
_Bool ml307_connectTest();
_Bool ml307_waitDataBack(u8 maxtim);
void ml307_Init(void);
_Bool ml307_connectMQTT(void);
void MQTT_dataProcess(u8* str);
_Bool ml307_sendMQTT(u8* str);
_Bool ml307_mqttSendData(int current, int temp);
_Bool ml307_http_get(u8* buff, const char* host, const char* url);
_Bool ml307_ota_downloader(u8* buff, const char* host, const char* url);





#endif